class SourceModel {
  List<Records> records;
  int total;
  int size;
  int current;
  List<Orders> orders;
  bool hitCount;
  bool searchCount;
  int pages;

  SourceModel(
      {this.records,
      this.total,
      this.size,
      this.current,
      this.orders,
      this.hitCount,
      this.searchCount,
      this.pages});

  SourceModel.fromJson(Map<String, dynamic> json) {
    if (json['records'] != null) {
      records = new List<Records>();
      json['records'].forEach((v) {
        records.add(new Records.fromJson(v));
      });
    }
    total = json['total'];
    size = json['size'];
    current = json['current'];
    if (json['orders'] != null) {
      orders = new List<Orders>();
      json['orders'].forEach((v) {
        orders.add(new Orders.fromJson(v));
      });
    }
    hitCount = json['hitCount'];
    searchCount = json['searchCount'];
    pages = json['pages'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.records != null) {
      data['records'] = this.records.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    data['size'] = this.size;
    data['current'] = this.current;
    if (this.orders != null) {
      data['orders'] = this.orders.map((v) => v.toJson()).toList();
    }
    data['hitCount'] = this.hitCount;
    data['searchCount'] = this.searchCount;
    data['pages'] = this.pages;
    return data;
  }
}

class Orders {
  Orders.fromJson(v);
      
  toJson() {}
}

class Records {
  int id;
  String source;

  Records({this.id, this.source});

  Records.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    source = json['source'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['source'] = this.source;
    return data;
  }
}
